Free will (the existence of autonomous human decisions made neither predictably nor randomly) is not real.

Human Beings do have a choice in how we respond to the world around us. We can learn better mastery over our mind and our ability to exercise free will by mindfulness and meditation techniques.

Irrelevant Conclusion

Even though you can learn to meditate, the original question still stands. We could simulate someone choosing to meditate in a deterministic way (or some other way without free will).