“He was like, ‘I’m working on this film with Greta Gerwig and it’s Barbie, and it’s possibly the funniest script I’ve read, and I really want you to write the song for the big dance ...