I believe you can use Loopback [1] for this (paid). If not, JACK [2] would certainly work but it's a bit of a hassle to get everything set up.
https://www.rogueamoeba.com/freebies/
hear the sound coming in through a microphone
Edit: It is specifically called out in the Citrix blog referenced above as not working well enough. Not sure if the Loopback software would be any different, but it does offer a free trial.
> New in 2.3: A long-standing issue with latency in LineIn has finally been cured! We've also added a menu item for toggling play-thru.
I'll try it out.