trace calling methods with set_trace_func
gem install mtrace
require 'mtrace'
Copyright (c) 2010 jugyo. See LICENSE for details.