Typically, you should ask the employee why they’re leaving, what a new company might be offering, and if there’s anything you could do better as a business. You may also ask whether they’re comfortable discussing any problems they faced at work.
Although exit interviews take time, the information you gain can provide a better understanding of your workplace and help you cultivate a more rewarding environment in the future.