tongue-in-cheek
tongue-in-cheek {adj. phr.}
In an ironic or insincere manner.
When the faculty complained about the poor salary increments, the university's president said that he was not a psychiatrist, thus making an inappropriate tongue-in-cheek remark.
Categories:
Source: A Dictionary of American Idioms