function debug ( target , name , descriptor ) { descriptor . value = function ( ... args ) { console . log . call ( console , 'Called with:' , ... args ) ; } ; } class MyClass { @ debug method ( name , isHappy ) { } } new MyClass ( ) . method ( 'Blake' , true ) ;