title: Get caller class
body: <p>I'm writing Logger and got problem with automatic adding class name, from which I called print_log method.
  For example something like this:</p>
  
  <pre><code>class Logger
    def self.print_log(string)
      puts Time.now.strftime('%T | ') + *caller_class_name_here* + ' - ' + string 
    end
  end
  
  class MyClass
    def initialize
      Logger.print_log 'called .new() method'
    end
  end
  </code></pre>
  
  <p>As result of calling <code>MyClass.new</code> method I wanna see in output:</p>
  
  <blockquote>
    <p>14:41:23 | MyClass - called .new() method</p>
  </blockquote>
  
  <p>I'm sure it's possible to do using <code>caller</code>, but yet can't find how</p>