You can insert some Blocks before and after the method like Aspect Oriented Programming.