Eminem himself talked about this song in the book “The Angry Blonde” saying:

“I was just fucking around when I made this song. To me it’s just a rap record. The message behind it was just complete sarcasm. I wanted to be clear: Don’t look at me like I’m a fucking role model. Dre and I were in the studio at his house, and he had made the track first. I had started a rhyme the night before and I hadn’t finished it yet. When I heard the track, I said "Yo Dre, I got a rhyme that goes with that” I finished the rhyme and started writing the song in the studio. I finished the first verse, knocked out the second verse, and then I wrote a hook. Then Mel-Man thought of the part that goes “Don’t you wanna grow up to be just like me?” I said “Yo that’s perfect”, ‘cause I was talking about the same shit. You know, smoke weed, take pills, drop out of school and all that shit, So he had that part of the hook and I filled in all the blanks. “I came to the club drunk with a fake ID / Don’t you wanna grow up to be just like me!” This was one of the first three songs I did with Dre when we began working together.“