Green’s Dictionary of Slang

goofball n.2

[goof n.1 (3) + -ball sfx]

[1940s+] (US) a silly, amusing, eccentric or insane person.