title: How to get the name of the calling method?
body: <p>is there a way in Ruby to find the calling method name inside of a method?</p>
  
  <p>For example:</p>
  
  <pre><code>class Test
    def self.foo
      Fooz.bar
    end
  end
  
  class Fooz
    def self.bar
      # get Test.foo or foo
    end
  end
  </code></pre>