Place it at the very end of a chase or prank sequence, after cartoon chase music has built the escape, so the farewell closes the bit. Follow it with a short laugh for a cartoon ending, or leave it last and cut straight to black.