Spectroscopic evidence for the direct involvement of local moments in the pairing process of the heavy-fermion superconductor CeCoIn5