Possible Duplicate:
How to get the name of the calling method?
I have a method #foo. That method can be called from many places (scopes). I need #foo to find out where it was called from. But not the stack trace (like what #caller returns), I want the pure name of the method (like what #__callee__ returns). Does a method for this exist in Ruby?