Flicking The Old Bean:

Exercising the “wit center” of one’s brain, through the use of spoken or written words, where the stated goal is to play with language, rather than to effectively communicate a specific idea itself.

Sometimes referred to as Vocabular Masturbation.