Navigate to System Preferences > Sound.
Select the Sound Effects tab.
Check the box labeled Play feedback when volume is changed. Close System Preferences.
You're all done!
If the "popping" sound when you adjust the volume on your Mac annoys you, this guide will show you how to disable it!