My great grandmother called it the apple method which tells me that the joke probably goes back centuries.
I’m in my 70’s. The aspirin “joke” was around when I was a kid