Heat oven to 300 degrees. Unwrap candy canes and place on oven safe plate or tray in the heart position. I used a silicon mat, but putting directly on tray works just fine too.
Bake for 3 minutes. Pull them out and see if they are malleable yet. You don’t want them melted, just soft enough to mold the two candy canes together. If you can mold them (be quick because they will be hot to the touch), press gently the edges until they are formed together into a solid heart.
Let cool completely. After they are cool you can place them in a nice plastic bag and attach a valentine to it.