How Do I Make the "Boing-oing-oing..." Sound Effect at Home?

if you rotate the ruler so a smaller amount of the ruler is hanging off as it goes “Boing-oing-oing…” the frequency will change, and make a more accurate sound.