add method to print current method name and class name