The Andy Griffith Show
Goober Makes History (7x14)
:
Goober grows tired of being the most ignorant one in town; he goes away fishing and accidentally grows a beard. The beard makes him believe he is smart--and he becomes an unbearable bore to everyone in Mayberry.