ああ言えばこう言う

Idiom

 * 1) having a comeback or excuse for everything one is told, being smart in the sense of having a smart mouth