title: print type of variable in Scala
body: <p>Is there a neat method could print the class name of a variable in Scala? </p>
  
  <p>Sometimes I see <code>val result = foo(a,b,c)</code>, since method <code>foo</code> may return different types of object and if I could print class type of result, it will be great.</p>