I first heard the phrase in the Eddie Murphy movie “48 Hours” (1982). A friend tells me it goes back much farther than that, and that a U.S. president might have something to do with it (he couldn’t recall who or how). Google and the usual word-lover websites have failed me.
Jed Clampet (Buddy Ebson) of the “Beverly Hillbillies” TV sitcom made the phrase popular in the mid-sixties. The shows wrighters must have gotten it from an earlier source like Sam Clem mentioned. WAG, sounds like something Will Rodger’s would have said and that would fit Jed’s character.