There is a simple way:
1. Plant tree 2. Wait 20 years 3. Chop tree 4. Burn tree in steam engine and generate electricity.
However, that's a long time for a relatively small amount of energy (not even counting logistics losses here). Most trees are just not very efficient at converting solar energy/CO2 into fuel (wood). There are better results being looked in with algae that might result in fuel some time, but it's still in research.