“I really wanted to write a good villain song for Barry, and I called him and said, ‘This going to sound crazy,'” Miranda tells TheWrap.