Arthur's trace formula and residues of Dedekind zeta functions