# Ruby Version >= 1.9 def a print 1 + 1 end puts RubyVM::InstructionSequence.disasm method(:a) output = <========= 0000 trace 8 ( 4) 0002 trace 1 ( 5) 0004 putself 0005 putobject_OP_INT2FIX_O_1_C_ 0006 putobject_OP_INT2FIX_O_1_C_ 0007 opt_plus 0009 opt_send_simple 0011 trace 16 ( 6) 0013 leave ( 5) EOF