Question about screen recording on macOS

I would like to screen record from my Mac. Here is the problem though. I am making a tutorial of an audio game, video wise, and it requires headphones. I would like for people to here the sound, as well as me talking throughout the video. Is this possible to do? If so, how is this done?