It must be a parody of a proverb 聞くは一時の恥、知らぬは一生の恥 To ask may be a moment's shame, but not to ask and to remain ignorant is an everlasting shame. The meaning is "to teach may be a moment's sense of superiority, but not to teach is an everlasting sense of superiority."