What is the legal way to get this answer from my employer

If a meeting doesn't yield the desired information, send a formal written request for an explanation of the reasons for your termination. Specify that you are seeking specific details about your performance issues and any documentation related to them. Keep copies of all your correspondence.