Way is a more basic word for method, but can also be used to mean different things. In this sentence, you can not use 'method'. 'Method' gives the context that a physical process is being used, whereas 'way' is simpler and gives the context of not just a physical process, but also a mental one.
Sorry if that answer is confusing, it's the best I could do. Keep up the good work! :))