How to Hide the "Debug" Admin Menu

function plt_hide_dzs_enable_debug_menus() {
	//Hide the "Tools → Debug" menu.
	remove_submenu_page('tools.php', 'dzsedg-mo');
}

add_action('admin_menu', 'plt_hide_dzs_enable_debug_menus', 11);

Where do I put this code?