Yeah, you gotta make em prove their work so they don't hallucinate.
Try "build a script to trace callers" and "cite each file and line that calls the function"
Won't fix everything but usually helps in my experience
Although you still run into hard-to-find things especially in dynamic/duck typed languages or codebases with heavy use of reflection or code bases used as libraries