Probing Leptogenesis with the Cosmological Collider